﻿<%@ Page Language="C#" MasterPageFile="~/education.master" AutoEventWireup="true" CodeFile="eduManageCourseInDeptStaff.aspx.cs" Inherits="eduManageCourseInDeptStaff" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="EduContent" Runat="Server">
    <table style="width:100%;">
        <tr>
            <td align="center">
                部门:
                <asp:Label ID="Label1" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:GridView ID="gvwStaff" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="StaffID" DataSourceID="SqlDataSource1">
                    <Columns>
                        <asp:BoundField DataField="StaffID" HeaderText="StaffID" InsertVisible="False" 
                            ReadOnly="True" SortExpression="StaffID" Visible="False" />
                        <asp:BoundField DataField="staffName" HeaderText="员工姓名" 
                            SortExpression="staffName" >
                             <ItemStyle Width="200px" />
                        </asp:BoundField>
                             <asp:HyperLinkField Text="&lt;img src='images/Edit.gif' border='0' /&gt;" 
                DataNavigateUrlFormatString="eduEditCoursesForDeptStaff.aspx?StaffID={0}" 
                DataNavigateUrlFields="StaffID" />
                    </Columns>
                    <EmptyDataTemplate>
                        <b>当前没有员工信息</b>
                    </EmptyDataTemplate>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:smsConnectionString %>" 
        
                    SelectCommand="SELECT staffName, StaffID FROM StaffInfo WHERE (DepartmentID = @DepartmentID)">
                    <SelectParameters>
                        <asp:ProfileParameter Name="DepartmentID" PropertyName="DepartmentID" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
        </tr>
    </table>
</asp:Content>

